package com.gxa.order.service;

import dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("check-service")
public interface CheckService {

    /**
     * 根据订单id 创建审批单
     * @param macOrderId
     * @return
     */
    @PostMapping("check/add/macOrder")
    ResultDTO addMac(@RequestParam Integer macOrderId);

    /**
     * 根据订单id 创建审批单
     * @param artOrderId
     * @return
     */
//    @PostMapping("check/add/artOrder")
//    ResultDTO addArt(Integer artOrderId);
    @PostMapping("check/add/artOrder")
    ResultDTO addArt(Integer artOrderId);

    //--------------------------------------------------------------

    /**
     * 查询人工单的审核人
     * @return
     */
    @PostMapping("check/macOrder/member")
    public ResultDTO exaMacOrderMember(@RequestParam Integer macOrderId);

    @PostMapping("check/artOrder/member")
    public ResultDTO exaArtOrderMember(@RequestParam Integer artOrderId);

    @PostMapping("check/order")
    public ResultDTO checkOrder(@RequestParam Integer orderId, @RequestParam Integer type);


}
